package com.infore.statisticsAndAlarm.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.infore.statisticsAndAlarm.bo.DatasChartsBo;
import com.infore.statisticsAndAlarm.service.ICheckingDatasService;
import com.infore.statisticsAndAlarm.util.ResultEntity;

import io.swagger.annotations.Api;

@Api(value = "验证数据接口", tags = {"验证数据接口" })
@RestController
@RequestMapping("/checkDatas")
public class CheckingController {

	@Autowired
	private ICheckingDatasService iCheckingDatasService;
	
	//验证查询参数
	public ResultEntity ckeckingDatasChartsBo(DatasChartsBo bo) {
		return iCheckingDatasService.ckeckingDatasChartsBo(bo);
	}
	
	//得到水质目标等级枚举类---数字转汉字
	public Map<String, String> queryTargetLevel() {
		return iCheckingDatasService.queryTargetLevel();
	}
	
	//得到水质目标等级枚举类---汉字转数字
	public Map<String, String> queryTargetLeveltoNumber() {
		return iCheckingDatasService.queryTargetLeveltoNumber();
	}
	
	//验证站点区域结果集
	public ResultEntity checkMnCodeAndResult(String mn,String code,Object object) {
		return iCheckingDatasService.checkMnCodeAndResult(mn, code, object);
	}
	
}
